import os
from sys import path

SYSTEM_NAME = "Pear Admin"
# 主题面板的链接列表配置
SYSTEM_PANEL_LINKS = [
    {
        "icon": "layui-icon layui-icon-auz",
        "title": "官方网站",
        "href": "http://www.pearadmin.com"
    },
    {
        "icon": "layui-icon layui-icon-auz",
        "title": "开发文档",
        "href": "http://www.pearadmin.com"
    },
    {
        "icon": "layui-icon layui-icon-auz",
        "title": "开源地址",
        "href": "https://gitee.com/Jmysy/Pear-Admin-Layui"
    }
]

BASE_URL = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
# 上传图片路径配置
UPLOADED_PHOTOS_DEST = os.path.join(BASE_URL, 'static', 'upload')
UPLOADED_PHOTOS_URL = "/_uploads/files/"
# 上传文件路径肯文件访问地址
UPLOADED_FILES_DEST = os.path.join(BASE_URL, 'static', 'upload', 'files')
UPLOADED_FILES_URL = "/_uploads/files/"

UPLOADED_FILES_ALLOW = ['gif', 'jpg']
# 封面图和轮播图的比例和默认宽度
COVERIMG_SCALE = "4/3"
COVERIMG_WIDTH = "400"
LUNBOIMG_SCALE = "2/1"
LUNBOIMG_WIDTH = "800"
# JSON配置
JSON_AS_ASCII = False
